package com.example.hubeiweb.vo;

public class Users {

        //用户主键
        private Integer id;
        //员工工号
        private String workCode;
        private String username;
        private String password;
        private String department;
        private String post;
        private String registerDate;
        private String gender;
        private String telephone;
        private String birthDate;
        private String email;
        private String role;
        private Integer state;

        // 构造函数
        public Users(Integer id, String workCode, String username, String password, String department, String post,
                     String registerDate, String gender, String telephone, String birthDate, String email) {
            this.id = id;
            this.workCode = workCode;
            this.username = username;
            this.password = password;
            this.department = department;
            this.post = post;
            this.registerDate = registerDate;
            this.gender = gender;
            this.telephone = telephone;
            this.birthDate = birthDate;
            this.email = email;
            this.role = role;
            this.state = state;
        }

        // 默认构造函数
        public Users() {
        }

    public Users(String username, String password) {
            this.username=username;
            this.password=password;
    }



    // Getter 和 Setter 方法
        public Integer getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getWorkCode() {
            return workCode;
        }

        public void setWorkCode(String workCode) {
            this.workCode = workCode;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getDepartment() {
            return department;
        }

        public void setDepartment(String department) {
            this.department = department;
        }

        public String getPost() {
            return post;
        }

        public void setPost(String post) {
            this.post = post;
        }

        public String getRegisterDate() {
            return registerDate;
        }

        public void setRegisterDate(String registerDate) {
            this.registerDate = registerDate;
        }

        public String getGender() {
            return gender;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public String getTelephone() {
            return telephone;
        }

        public void setTelephone(String telephone) {
            this.telephone = telephone;
        }

        public String getBirthDate() {
            return birthDate;
        }

        public void setBirthDate(String birthDate) {
            this.birthDate = birthDate;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getRole() {
            return role;
        }

        public void setRole(String role) {
            this.role = role;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        @Override
        public String toString() {
            return "User{" +
                    "id=" + id +
                    ", workCode='" + workCode + '\'' +
                    ", username='" + username + '\'' +
                    ", password='" + password + '\'' +
                    ", department='" + department + '\'' +
                    ", post='" + post + '\'' +
                    ", registerDate=" + registerDate +
                    ", gender=" + gender +
                    ", telephone='" + telephone + '\'' +
                    ", birthDate=" + birthDate +
                    ", email='" + email + '\'' +
                    ", role=" + role +
                    ", state=" + state +
                    '}';
        }



}
